package com.ali.juejin.services

import com.ali.juejin.bean.CommonReponseBean
import com.ali.juejin.bean.LoginBean
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface LoginServices {

    @FormUrlEncoded
    @POST("/v1/login")
    suspend fun login(
        @Field("user") user:String,
        @Field("psd") psd:String,
        @Field("login_type") loginType:String,
        @Field("client_id") client_id:String,
        @Field("device_id") device_id:String,
        @Field("src") src:String="android",
        @Field("state") state:String="state",
        @Field("token") token:String=""
    ):CommonReponseBean<LoginBean>
}